
/*
 * 生成随机数
 */
const getRandomNum = function (min = 0.1, max = 20) {
  let range = max - min
  let rand = Math.random()
  let num = (min + rand * range).toFixed(1) 
  return num
}

module.exports = {
  getRandomNum: getRandomNum
}
